//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "MontaniaRusa.h"

void MontaniaRusa::iniciar(){
        if (!inicializado()) return;
        float radio = 0.7;
        float inc = (5*M_PI/nq);
        Rodaja* r = new Rodaja(radio,np);
        Rodaja* ant = NULL;
        Rodaja* act = NULL;
        for (int i=0;i<nq;i++){
                if(i == 0){
                        ant = transformacionM(r,i*inc);
                        addVertice(ant);
                        //ant->dibuja();
                }else{
                        act = transformacionM(r,i*inc);
                        addVertice(act);
                        addCaras(np);
                        ant = act->clona();
                        delete act;
                        act = NULL;
                }
        }
};

//---------------------------------------------------------------------------

#pragma package(smart_init)
 